<template>
	<view class="">

		<view class="content" @click="itemClick">
			<image :src="imgSrc" mode="scaleToFill"></image>
			<text>{{name}}</text>

			<u-icon name="arrow-right"></u-icon>
		</view>

		<u-line color="#e4e4e4"></u-line>

	</view>
</template>

<script>
	export default {
		props: {
			name: {
				type: String
			},
			imgSrc: {
				type: String,
				
			}
		},
		
		methods:{
			itemClick(){
				this.$emit("itemClick")
			}
		}
	}
</script>

<style lang="scss">
	.content {
		@include flex;
		height: 87upx;
		align-items: center;

		image {
			width: 30upx;
			height: 30upx;
		}

		text {
			font-size: 28upx;
			flex-grow: 1;
			color: #000000;
			margin-left: 12upx;
		}
	}
</style>
